<style type="text/css">
.add_add_input{ width:40%; float:left;}

.add_add_input1{ width:60%; float:left;}

.add_add_input1 span.gray_comment{ width:auto; float:right; color:#F00;}

</style>


<?php 
/* echo $this->Form->input('Product.attribute', 
                        array('type' => 'select','options'=>$_list_attributes,
                        'name'=>'data[Product][Attr][1][attribute]','class'=>'ProductAttribute mws-textinput','empty'=>false,'label' =>false)
                        );   */        
?>
<?php 
 /*echo $this->Form->input('Product.attribute', 
                        array('type' => 'select','options'=>$_list_attributes,
                        'name'=>'data[Product][Attr][1][attribute]','class'=>'ProductAttribute mws-textinput','empty'=>false,'label' =>false)
                        );   */        
?>
<?php
	if(isset($_list_attributes) and ($_list_attributes))
	{
	foreach($_list_attributes as $_list_attribute)
		{
	?>
				<div id="ATTR1337845210377<?php echo $_list_attribute['Attribute']['id']; ?>" class="def_width_100 ">
			  <div class="mws-form-row add_add_input" >
				<div class="mws-form-item small">
				   <input type="text" class="mws-textinput" value="<?php echo $_list_attribute['Attribute']['name']; ?>" readonly="readonly" style=" width:200px;">
				   <input type="hidden" style="width:100px;" value="<?php echo $_list_attribute['Attribute']['id']; ?>" name="data[Product][Attr][<?php echo $_list_attribute['Attribute']['id']; ?>][attribute]">
				  <input type="hidden" class="sd" value="<?php echo $_list_attribute['Attribute']['name']; ?>"
				   name="data[Product][Attr][<?php echo $_list_attribute['Attribute']['id']; ?>][key]">
				</div>
			  </div>
			  <div class="mws-form-row add_add_input1" >
				<div class="mws-form-item small">
                 <div class="input text">
				
				<?php
					if(isset($_list_attribute['Attribute']['required']) and ($_list_attribute['Attribute']['required']==1))
					{
						$required = 'required="required"';
						$variable = "<span class='gray_comment'>(Required)</span>"; 
					}
					else
					{
						$required = "";
						$variable = "";
					}
				?>
				<input type="text" style="width:280px;" id="ProductAttrValue" class="mws-textinput" <?php echo $required; ?> value="" name="data[Product][Attr][<?php echo $_list_attribute['Attribute']['id']; ?>][attr_value]"><?php echo $variable; ?>
                </div> 
               </div>
			  </div>
			</div>
				<div class="clear" style="clear:both;"></div>
			<?php
		}
	}
	else
	{
		echo $message; 
	}
	?>